-- GENERATED SPELL FOR [Glacial Lieutenant] --


function spell0_26215(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(14907,pUnit)
pUnit:RegisterEvent('Sorts_26215', 8330, 1)
end

function spell1_26215(pUnit, Event) --@Frost Shock,n/a--
pUnit:FullCastSpellOnTarget(15089,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26215', 8285, 1)
end

function Sorts_26215(pUnit, Event)
local choix_sorts_26215 = math.random(0, 1)
if choix_sorts_26215 == 0 then
pUnit:RegisterEvent('spell0_26215', 1, 1)
end
if choix_sorts_26215 == 1 then
pUnit:RegisterEvent('spell1_26215', 1, 1)
end
end

function mob26215_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26215', math.random(1500, 3000), 1)
end

function mob26215_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26215_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26215_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26215, 1, 'mob26215_Action')
RegisterUnitEvent(26215, 2, 'mob26215_Leave')
RegisterUnitEvent(26215, 3, 'mob26215_Kill')
RegisterUnitEvent(26215, 4, 'mob26215_Die')
